package com.rich.house;

import com.rich.common.util.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author:fei
 * @Date:2021/8/13
 */
@SpringBootApplication(scanBasePackages = "com.rich")
@EnableDiscoveryClient
@EnableScheduling
@EnableFeignClients
@MapperScan("com.rich.house.mapper")
public class RichHouseApplication {
    public static void main(String[] args) {
        SpringApplication.run(RichHouseApplication.class, args);
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker();
    }
}
